package org.cloud.core.common.constant;

import lombok.Getter;

/**
 * @author Violet
 * @description 一些列的默认值，从这里取即可，不设置为枚举类，兼容多种类型的值
 * @date 2021/5/22
 */
@Getter
public class DefaultColumn {
    /**
     * token header key
     */
    public static final String AUTHORIZATION = "Authorization";

    public static final String UID = "Uid";
    public static final String REQUEST_URI = "RequestUri";
    /**
     * 菜单类型枚举
     */
    // 根级别目录
    public static final String MENU_TYPE_ROOT = "R";
    // 目录 就像文件夹一样 里面存东西的
    public static final String MENU_TYPE_FOLDER_MENU = "M";
    // 菜单 就是实际的页面了
    public static final String MENU_TYPE_NORMAL_MENU = "C";
    /**
     * 密码校验正则
     */
    public static final String REGEXP_USER_PASSWORD = "^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{7,16}$";
    /**
     * 角色枚举
     */
    public static final String ROLE_SUPER_ADMIN = "ROLE_SADMIN";
    public static final String ROLE_ADMIN = "ROLE_ADMIN";
    public static final String ROLE_USER = "ROLE_USER";
    /**
     * 可用（启用）
     */
    public static final Integer ENABLE = 1;

    /**
     * 不可用（逻辑删除）
     */
    public static final Integer DISABLE = 0;
    /**
     * 草稿
     */
    public static final Integer DRAFT = 1;
    /**
     * 非草稿
     */
    public static final Integer NOT_DRAFT = 0;
}
